<template>
	<view class="template-set">
		<view class="tn-margin-top">
			<view class="bg-fff b-r-15 ma-20 pa-20">
				<view class="tn-flex tn-flex-row-between tn-strip-bottom-min tn-padding" @click="tn('/pages/my/avatar')">
					<view class="justify-content-item">
						<view class="tn-text-bold tn-text-lg">
							用户头像
						</view>
						<view class="tn-color-gray tn-padding-top-xs">
							有趣的头像，百里挑一
						</view>
					</view>
					<view class="justify-content-item tn-text-lg tn-color-grey">
						<view class="tn-icon-right tn-padding-top"></view>
					</view>
				</view>

				<view class="tn-flex tn-flex-row-between tn-padding" @click="tn('/pages/my/safety')">
					<view class="justify-content-item">
						<view class="tn-text-bold tn-text-lg">
							设置密码
						</view>
						<view class="tn-color-gray tn-padding-top-xs">
							修改密码
						</view>
					</view>
					<view class="justify-content-item tn-text-lg tn-color-grey">
						<view class="tn-icon-right tn-padding-top"></view>
					</view>
				</view>
				<view class="tn-flex tn-flex-row-between tn-padding" @click="tn('/pages/my/receiving')">
					<view class="justify-content-item">
						<view class="tn-text-bold tn-text-lg">
							收款账户
						</view>
						<!-- <view class="tn-color-gray tn-padding-top-xs">
							修改用户昵称、密码
						</view> -->
					</view>
					<view class="justify-content-item tn-text-lg tn-color-grey">
						<view class="tn-icon-right tn-padding-top"></view>
					</view>
				</view>
			</view>
			<view class="bg-fff b-r-15 ma-20 pa-20">
				<view class="tn-flex tn-flex-row-between tn-strip-bottom-min tn-padding tn-margin-top-xs"
					v-for="(item, index) in setList" :key="index" @click="tn(item.url)">
					<view class="justify-content-item">
						<view class="tn-text-bold tn-text-lg">
							{{ item.title }}
						</view>
					</view>
					<view class="justify-content-item tn-text-lg tn-color-grey">
						<view class="tn-icon-right"></view>
					</view>
				</view>

			</view>
			<!-- 悬浮按钮-->
			<view class="tn-flex  tn-footerfixed">
				<view class="tn-flex-1 justify-content-item tn-margin-sm tn-text-center"
					 >
					<tn-button shape="round" backgroundColor="#fbbd12" padding="40rpx 0" width="60%" shadow
						fontBold>
						<!-- <text class="tn-icon-light tn-padding-right-xs tn-color-black"></text> -->
						<text class="tn-color-white">退出登录</text>
						<!-- <text class="tn-icon-light tn-padding-left-xs tn-color-black"></text> -->
					</tn-button>
				</view>
			</view>

		</view>


	</view>
</template>

<script>
	export default {
		data() {
			return {
				setList: [
					{
						title: "使用协议",
						url: "/pages/my/agreement",
					},
					{
						title: "隐私政策",
						url: "/pages/my/policy",
					},
					{
						title: "关于全民股东",
						url: "/pages/my/about",
					}
				]
			}
		},
		methods: {

			tn(url) {
				try {
					uni.navigateTo({
						url,
					});
				} catch (e) {
					console.error(e);
					uni.showToast({
						title: "跳转失败",
						icon: "none",
						mask: true,
					});
				}
			},
		}
	}
</script>

<style lang="scss" scoped>
	/* 胶囊*/
	.tn-custom-nav-bar__back {
		width: 60%;
		height: 100%;
		position: relative;
		display: flex;
		justify-content: space-evenly;
		align-items: center;
		box-sizing: border-box;
		background-color: rgba(0, 0, 0, 0.15);
		border-radius: 1000rpx;
		border: 1rpx solid rgba(255, 255, 255, 0.5);
		color: #FFFFFF;
		font-size: 18px;

		.icon {
			display: block;
			flex: 1;
			margin: auto;
			text-align: center;
		}

	}


	/* 间隔线 start*/
	.tn-strip-bottom-min {
		width: 100%;
		border-bottom: 1rpx solid #F8F9FB;
	}

	.tn-strip-bottom {
		width: 100%;
		border-bottom: 20rpx solid rgba(241, 241, 241, 0.8);
	}

	/* 间隔线 end*/



	/* 底部悬浮按钮 start*/
	.tn-tabbar-height {
		min-height: 100rpx;
		height: calc(120rpx + env(safe-area-inset-bottom) / 2);
	}

	.tn-footerfixed {
		position: fixed;
		width: 100%;
		bottom: calc(30rpx + env(safe-area-inset-bottom));
		z-index: 1024;
		box-shadow: 0 1rpx 6rpx rgba(0, 0, 0, 0);

	}

	/* 底部悬浮按钮 end*/
</style>